package javabase.schoolwork.day6_1to3;

/**
 * @author fance
 * @date 2018/6/1 21:19
 */
public class HardDisk {
    private String brand;
    private long num;
    private String size;

    public HardDisk() {
    }

    public HardDisk(String brand, long num, String size) {
        this.brand = brand;
        this.num = num;
        this.size = size;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "HardDisk{" +
                "brand='" + brand + '\'' +
                ", num=" + num +
                ", size='" + size + '\'' +
                '}';
    }
    public void read(){
        System.out.println("hard disk read. ..");
    }
    public void write(){
        System.out.println("hard disk write. ..");
    }

}
